package com.hopes.bizz.risk.gis.vo;

import com.hopes.bizz.risk.hid.vo.RiskHidStatistics;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lyb
 * @version 1.0
 * @date 2024/2/23 16:45
 */
@Data
public class RiskHidStatusStatistics {
    /**
     * X轴
     **/
    private List<String> hidStatus = new ArrayList<>();
    /**
     * Y轴
     **/
    private List<RiskHidStatistics> data = new ArrayList<>();
    /**
     * 整改中
     **/
    private int rectifyCount;
    /**
     * 待验收
     **/
    private int waitCheckCount;
    /**
     * 延期整改
     **/
    private int postponeRectifyCount;
    /**
     * 超期未整改
     **/
    private int expiredCount;
    /**
     * 已验收
     **/
    private int checkCount;

    public void addData(String name, List<Integer> data) {
        RiskHidStatistics riskHidStatistics = new RiskHidStatistics();
        riskHidStatistics.setName(name);
        riskHidStatistics.setData(data);
        this.data.add(riskHidStatistics);
    }

    public void addName(String name) {
        this.hidStatus.add(name);
    }
}
